hvmloader: refactor BIOS info setup
authorIan Campbell <ian.campbell@citrix.com>
Wed, 1 Jun 2011 15:47:04 +0000 (16:47 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 1 Jun 2011 15:47:04 +0000 (16:47 +0100)
commitc25fb1ae7b81da62d93afe8044c359d7372962d6
treeb84c20677829f6805244d22338b599f762f1e527
parent80766862aa1c3929c90b27fe3d1850071de9ce98
hvmloader: refactor BIOS info setup

Currently we have ->bios_high_setup, which is called relatively early
and returns a cookie which is passed to ->bios_info_setup which runs
towards the end and creates the BIOS info, incorporating the cookie
which (in the case of ROMBIOS) happens to be the BIOS's high load
address . This is rather ROMBIOS specific.

Refactor to have ->bios_info_setup which is called early and prepares
the bios_info, ->bios_relocate which does any necessary relocation
(updating the BIOS info as necessary) and ->bios_info_finish which
finalises the info (e.g.  by calculating the checksum).

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
tools/firmware/hvmloader/config.h
tools/firmware/hvmloader/hvmloader.c
tools/firmware/hvmloader/rombios.c
tools/firmware/hvmloader/seabios.c